﻿@using TinyMoocSite.ViewModels
@model CourseOverview

@{
    ViewBag.Title = Model.Title + "|课程概要";
    Layout = "~/Views/Teacher/CoursePageLayout.cshtml";
}

@section Overview { active }
@section Resource {  }
@section StudentList {  }
@section AttachedPage {  }
@section Discuss {  }
@section Homework {  }

@section RightContainer
{
    <h3>关于课程</h3>
    <a href="/Teacher/UpdateOverview?Id=@Model.Id&Section=Description">修改该部分</a><br /><hr />
    <p>@Html.Raw(@Model.Description)</p><br />

    <h3>先修课程与背景知识</h3>
    <a href="/Teacher/UpdateOverview?Id=@Model.Id&Section=Prerequisites">修改该部分</a><br /><hr />

    <p>@Html.Raw(@Model.Prerequisites)</p><br />
    <h3>教材与参考资料</h3>
    <a href="/Teacher/UpdateOverview?Id=@Model.Id&Section=Textbook">修改该部分</a><br /><hr />
    <p>@Html.Raw(@Model.Textbook)</p><br />

    <h3>评分规则</h3>
    <a href="/Teacher/UpdateOverview?Id=@Model.Id&Section=ScoringRule">修改该部分</a><br /><hr />
    <p>@Html.Raw(@Model.ScoringRule)</p><br />

    <h3>课程负责人员</h3><hr />
    <table class="table">
        <thead>
            <tr>
                <th>教师姓名</th>
                <th>职称</th>
                <th>个人主页</th>
                <th>电子邮箱</th>
            </tr>
        </thead>
        <tbody>
            @foreach (TeacherShortItem item in Model.InvolvedTeachers)
            {
                <tr>
                    <td>@item.FullName</td>
                    <td>@item.ProfTitle</td>
                    <td>@item.Website</td>
                    <td>@item.Email</td>
                </tr>
            }
        </tbody>
    </table>    
}